/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.visanyee.dao;

import com.rbh.visanyee.entity.Workgroup;
import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 *
 * @author M
 */
public interface WorkgroupDao {

    public void insert(Workgroup workgroup) throws DataAccessException;

    public void update(Workgroup workgroup) throws DataAccessException;

    public void delete(Workgroup workgroup) throws DataAccessException;

    public Workgroup getById(Integer workgroupId) throws DataAccessException;

    public List<Workgroup> getAll() throws DataAccessException;

    public List<Workgroup> getChildWorkgroup() throws DataAccessException;

    public List<Workgroup> getByWords(String words) throws DataAccessException;

    public List<Workgroup> getByNotEqWords(String words, Workgroup workgroup) throws DataAccessException;
}